Changing Password once logged in

Modified on 2012/01/23 12:13 by Andrew Busby (CTS) — Categorized as: Uncategorized

To change the password after you have logged in you use the ChangePassword method on the User object. The user object can be obtained from the Host.Users list. The master user for the session (the one you specified in the Host constructor) is always index 0 in the user list, i.e. Host.Users(0). The first thing the ChangePassword method does is check the complexity and returns “” if the request was sent to the server, or a short string describing the reason why not. After the request is sent to the server you will receive a PasswordChangeResponse event off the User object that will give either Success, PasswordChangeFailed or PasswordAlreadyUsed response.